CFLAGS = -g
objects = main.o ParseUsage.o Command.o Mysocket.o Myuser.o

client: $(objects)
	g++ $(CFLAGS) -o client $(objects) -lpthread

main.o: main.cpp
	g++ $(CFLAGS) -c $^

ParseUsage.o: ParseUsage.cpp
	g++ $(CFLAGS) -c $^

Command.o: Command.cpp
	g++ $(CFLAGS) -c $^

Mysocket.o: Mysocket.cpp
	g++ $(CFLAGS) -c $^

Myuser.o: Myuser.cpp
	g++ $(CFLAGS) -c $^

.PHONY: clean
clean:
	rm -f client $(objects) *.gch
cgch:
	rm -f *.gch
